package com.itheima.mall.service.omsService;

import com.itheima.PageResult;
import com.itheima.dto.OmsOrderReturnApplyDto;
import com.itheima.pojo.oms.OmsOrderReturnApply;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OmsOrderReturnApplyService {
    @DubboReference
    private OmsOrderReturnApplyApi omsOrderReturnApplyApi;

    public void delete(Integer[] ids) {
        omsOrderReturnApplyApi.delete(ids);
    }

    public PageResult<OmsOrderReturnApply> list(OmsOrderReturnApplyDto dto, Integer pageNum, Integer pageSize) {
      PageResult<OmsOrderReturnApply> pageResult = omsOrderReturnApplyApi.list(dto,pageNum,pageSize);
      return pageResult;

    }

    public OmsOrderReturnApply findById(Integer id) {
       return  omsOrderReturnApplyApi.findById(id);
    }

    public void updateById(Integer id, OmsOrderReturnApply omsOrderReturnApply) {
        omsOrderReturnApplyApi.updateById(id,omsOrderReturnApply);

    }
}
